/**
 *  a dialog to notify text input syntax errors
 *  @author zulianp@lu.unisi.ch & lemmar@lu.unisi.ch
 */

package ch.unisi.inf.projects.java.uom.gui;

import java.awt.Component;
import javax.swing.JDialog;
import javax.swing.JOptionPane;

public final class UOMMessagePane extends JOptionPane{

	private static final long serialVersionUID = -1L;
	

	public UOMMessagePane(final String message,final  Component parent){
		
		super(message,ERROR_MESSAGE);//,INFORMATION_MESSAGE);
		final JDialog dialog = this.createDialog(parent, "Wrong input");
	    dialog.setVisible(true);
	}
	
}
